#ifndef PARTICIPANT_H
#define PARTICIPANT_H

#include "person.h"

#include <QString>

class QAbstractItemModel;
class QModelIndex;
class QStandardItem;

class Participant
{
public:
    Participant(int bib, bool member, Person* person);
    Participant(int bib, QString fullName, int age,
                Person::Gender gender,
                QString origin, bool member);
    ~Participant();

    void        setHide(bool s) { mHide = s; }
    bool        isHidden() { return mHide; }

    int         bib();
    QString     name();
    int         age();
    QString     genderStr();
    Person::Gender
                gender();
    int         genderIndex() { return (int)mGender; }
    QString     origin();
    bool        member();
    bool        hidden();

    QList<QStandardItem*>  standardItemList();

protected:

    int             mBib;
    QString         mName;
    int             mAge;
    Person::Gender  mGender;
    QString         mOrigin;
    bool            mMember;

private:
    bool            mHide;
};

#endif // PARTICIPANT_H
